home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / vol_200 / 271_02 / repchar.doc < prev    next >
Text File  |  1987-08-18  |  959b  |  39 lines

  1.  
  2.  
  3.        NAME
  4.                repchar -- repeat a character n times to fd
  5.  
  6.        SYNOPSIS
  7.                void repchar(chr, qty, fd);
  8.                char chr;       character to send
  9.                int qty;        number of characters to send
  10.                FILE *fd;       file descriptor of output channel
  11.  
  12.        DESCRIPTION
  13.        This function sends qty number of chr to fd, which is usually
  14.        stdout, stderr, or an open file.  Maximum qty is 128.
  15.        If qty > 128, it will be truncated to 128.  This limit is due
  16.        to an internal string buffer.  For speed, the string is filled
  17.        and then fputs() is called to output the data as a string.
  18.  
  19.        EXAMPLE
  20.  
  21.              repchar('X', 50, stdout);
  22.  
  23.        to output a double horizontal line:
  24.              #include "graphics.h"
  25.              repchar(DHLINE, 50, stdout);
  26.  
  27.  
  28.  
  29.  
  30.  
  31.  
  32.  
  33.  
  34.  
  35.  
  36.  
  37.  
  38.        This function is found in SMTCx.LIB for the Turbo-C Compiler.
  39.